import axios from '@/assets/model/httpconfig/AxiosApi';
import qs from 'qs';
import { WebApi } from '@/assets/model/httpconfig/WebApi';

export namespace study {
	/**视频操作方法 */
	export class note {
		/**
		 *搜索视频分页列表
		 * @param parameter 数据参数
		 */
		public selectnotepage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/study/selectnotepage',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 添加视频*/
		public addnote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/study/addnote',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 更新视频*/
		public updatenote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/study/updatenote',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 删除视频*/
		public deletenote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/study/deletenote',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
	}
}
